home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc19
/
gemfsc19.lzh
/
GEMFBIND
/
AESAPPL1.S
< prev
next >
Wrap
Text File
|
1993-03-11
|
3KB
|
60 lines
;*========================================================================
;*
;* AESFAST Public Domain GEM bindings.
;*
;*========================================================================
;-------------------------------------------------------------------------
; Define the offsets within the AES block storage area.
;-------------------------------------------------------------------------
aespb = 0 ; 'aespb' MUST be first!...
pcontrl = 0 ; Pointer to control array
pglobal = 4 ; Pointer to global array
pintin = 8 ; Pointer to intin array
pintout = 12 ; Pointer to intout array
padrin = 16 ; Pointer to adrin array
padrout = 20 ; Pointer to adrout array
control = 24 ; Control array is next...
function = 24 ; Function code
sintin = 26 ; size of intin
sintout = 28 ; size of intout
sadrin = 30 ; size of adrin
sadrout = 32 ; size of adrout
global = 34 ; Global array, needs no further def.
;*************************************************************************
;*
;* Application manager functions 1 of 2.
;*
;*************************************************************************
;-------------------------------------------------------------------------
; appl_init
; appl_exit
;-------------------------------------------------------------------------
globl _appl_init
_appl_init:
lea aesblock,a0 ; load pointer to aes block
lea control(a0),a1 ; Now get the offsets of the
move.l a1,pcontrl(a0) ; control & global arrays
lea global(a0),a1 ; within the block, & store
move.l a1,pglobal(a0) ; them in the aespb part.
move.l #$0A000100,d0 ; AControl 10,0,1,0 ; Set up the appl_init call.
bra.b appl_inout ; Continue at common code...
globl _appl_exit
_appl_exit:
move.l #$13000100,d0 ; AControl 19,0,1,0 ; Set up the appl_exit call.
appl_inout:
jmp aes_do ; Call AES, return to user.
; end of code